package com.oocl.zero.task0710.property.in;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.Scanner;

import com.oocl.zero.task0710.property.out.Printer;

public class Input {
	private Scanner sc;

	public Input(String fileName) {
		try {
			sc=new Scanner(new FileInputStream(new File(fileName)));
		} catch (FileNotFoundException e) {
			Printer.print("file not found");
		}
	}

	public Scanner getSc() {
		return sc;
	}

	public void setSc(Scanner sc) {
		this.sc = sc;
	}

	public boolean hasNext() {
		return sc.hasNext();
	}

	public String nextLine() {
		return sc.nextLine();
	}

	
}
